import service from "../utils/request";

export const downloadFileAPI = (fileName) => {
    return service.get(`/file/{fileName}`, {
        responseType: 'blob'
    })
}

// 文件上传
export const uploadFileAPI = (data) => {
    return service.post('/file/upload', data, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}